/*
 * @Author: czy
 * @Date: 2021-05-21 14:30:19
 * @LastEditTime: 2021-05-21 21:42:56
 */
#include "dev/hardware/uart.h"
#include "dev/hardware/vga.h"

/**
 * @description: Clear screen.
 * @param fd    Equipment number, -1 for uart, 1 for vga, 0 for uart and vga.
 */
void cls(int fd)
{
    if (fd >= 0)
    {
        vga_clear();
    }
    if (fd <= 0)
    {
        uart_clear();
    }
}